{% block sw_select_result %}
<!--  eslint-disable-next-line vuejs-accessibility/mouse-events-have-key-events vuejs-accessibility/click-events-have-key-events, vuejs-accessibility/no-static-element-interactions -->
<li
    class="sw-select-result"
    :class="resultClasses"
    :aria-selected="active ? 'true' : 'false'"
    :aria-label="ariaLabel"
    tabindex="0"
    @mouseenter="onMouseEnter"
    @click.stop="onClickResult"
>
    {% block sw_select_result_item_preview %}
    <span class="sw-select-result__result-item-preview">
        <slot name="preview"></slot>
    </span>
    {% endblock %}

    {% block sw_select_result_item_text_holder %}
    <span class="sw-select-result__result-item-text">
        {% block sw_select_result_item_text %}
        <slot></slot>
        {% endblock %}
    </span>
    {% endblock %}

    {% block sw_select_result_item_icon_transition %}
    <transition name="sw-select-result-appear">
        {% block sw_select_result_item_icon %}
        <mt-icon
            v-if="selected"
            class="sw-select-result__result-item-checkmark"
            name="regular-checkmark-xs"
        />
        {% endblock %}
    </transition>
    {% endblock %}

    {% block sw_select_result_item_description_holder %}
    <span
        v-if="hasDescriptionSlot"
        class="sw-select-result__result-item-description"
    >
        {% block sw_select_result_item_description %}
        <slot name="description"></slot>
        {% endblock %}
    </span>
    {% endblock %}
</li>
{% endblock %}
